package lab04.test04;

public class B implements Runnable {
    @Override
    public void run() {
        int count = 5;
        while (true) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

            if (count >= 1) {
                System.out.println(count);
                count--;
            }
        }
    }
}
